package com.ipartek.pruebas.capitulo12;

public abstract class ObjetoGraficoP10 {
	int x, y;
	
	public ObjetoGraficoP10() {
		super();
	}
	
	public ObjetoGraficoP10(int x, int y) {
		super();
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	void moverA(int nuevaX, int nuevaY) {
		System.out.println(" Movido el objeto a la posicion ["+ x +"," + y + "]");
	}
	
	abstract void dibujar();
	
	public String toString(){
		return super.toString() + " Dimension x " + this.x + '\n' +
		 " Dimension y " + this.y;
	}
	
}
